home *** CD-ROM | disk | FTP | other *** search
- Path: cs.ruu.nl!usenet
- From: wsldanke@cs.ruu.nl (Wessel Dankers)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: x ^= y ^= x ^= y;
- Date: 06 Mar 96 19:31:46 +0100
- Organization: Dept of Computer Science, Utrecht University, The Netherlands
- Message-ID: <759.6639T1171T2330@cs.ruu.nl>
- References: <1286.6624T1439T237@cs.ruu.nl> <3131C523.1ECC@sapiens.com>
- <4h075l$2go@elmer.tsc.com> <2141.6632T1213T2220@cs.ruu.nl> <4hilq7$rpg@news.ox.ac.uk>
- NNTP-Posting-Host: anx1p10.cc.ruu.nl
- X-Newsreader: THOR 2.22 (Amiga TCP/IP)
-
- Benjamin Hutchings <worc0223@sable.ox.ac.uk> wrote:
- > You f*cking idiot! I didn't write that! Get your attribution lines right
- > or just leave this thread and go back to your AMOS tutorials.
- Somebody else (dunno who) "f*cked" that up for me.
-
- > The compiler can choose to store the new values of variables in any order
- > it wants. So when the variable is read again later in the evaluation of the
- > expression you do _not_ know whether it will read the changed value or the
- > original value. So the results of statements such as "x ^= y ^= x ^= y;" are
- > undefined under ANSI. This is in the FAQ in a relevant group, I believe,
- > since it comes up so often. KILL THIS THREAD NOW! I can't be bothered to
- > reply to the rest of your idiotic posting.
-
- chill out
-
-